package com.newsmanagement.common;

/**
 * 统一返回数据
 * @author xbr
 * 2017/12/5
 */
public class ResultBase {

    /**
     * 返回提示
     */
    private String message;

    /**
     * 返回编码
     */
    private int code;

    /**
     * 返回的数据
     */
    private Object data;

    public ResultBase() {
        this.message = "success";
        this.code = 200;
    }

    public ResultBase(String message, int code, Object data) {
        this.message = message;
        this.code = code;
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
